* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '等线', Arial, sans-serif;
}

.contact {
    /* 相对定位 */
    position: relative;
    /* 设置最小高度 */
    min-height: 100vh;
    padding: 50px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #222;
}

.contact .content {
    max-width: 800px;
    text-align: center;
}

.contact .content h2 {
    font-size: 3em;
    color: white;
    font-weight: bolder;
}

.contact .content p {
    color: #fff;
    font-size: 1.1em;
    font-weight: lighter;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 设置元素间的距离 */
    gap: 50px;
    margin-top: 30px;
}

.container .contactInfo {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.container .contactInfo .box {
    position: relative;
    padding: 20px 0;
    display: flex;
    cursor: pointer;
}

.container .contactInfo .box .icon {
    position: relative;
    min-width: 60px;
    height: 60px;
    background: repeating-conic-gradient(from 27.5deg, #01dbc2 0%, #01dbc2 10%, transparent 10%, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .contactInfo .box .icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 117.5deg, #01dbc2 0%, #01dbc2 10%, transparent 10%, transparent 50%);
}

.container .contactInfo .box .icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #222;
}

.container .contactInfo .box .icon b {
    position: absolute;
    inset: 8px;
    background-color: #01dbc2;
    z-index: 2;
}

.container .contactInfo .box .icon i {
    position: relative;
    color: #222;
    font-size: 1.25em;
    z-index: 1000;
}

.container .contactInfo .box .text {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    font-size: 1.1em;
    color: #fff;
    font-size: 100;
}

.container .contactInfo .box .text h3{
    color: #01dbc2;
}

.container .contactInfo .txt {
    color: #fff;
    margin-top: 50px;
    border-left: 50px solid #01dbc2;
    padding-left: 10px;
    line-height: 1em;
}

.container .contactInfo .sci {
    position: relative;
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.container .contactInfo .sci li {
    list-style: none;
}

.container .contactInfo .sci li a{
    color: #fff;
    font-size: 1.5em;
    transition: 0.25s;
}

.container .contactInfo .sci li a:hover {
    color: #01dbc2;
    filter: drop-shadow(0 0 5px #01dbc2);
}

.container .contactForm{
    position: relative;
    width: 40%;
    background: repeating-conic-gradient(from var(--a), #01dbc2 0%, #01dbc2 10%, transparent 10%, transparent 50%);
    animation: animate 6s linear infinite;
    padding: 60px;
}

.container .contactForm::before{
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from var(--a), #01dbc2 0%, #01dbc2 10%, transparent 10%, transparent 50%);
    animation: animate 6s linear infinite;
    animation-delay: 1.5s;
}

.container .contactForm::after{
    content: '';
    position: absolute;
    inset: 2px;
    border: 20px solid #222;
    background: #333;
    z-index: 2;
}

@property --a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes animate {
    0% {
        --a: 0deg
    }
    100% {
        --a: 360deg
    }
}

.container .contactForm form {
    position: relative;
    z-index: 10;
}

.container .contactForm form h2 {
    font-size: 2em;
    color: #fff;

}

.container .contactForm form .inputBox {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.container .contactForm form .inputBox textarea,
.container .contactForm form .inputBox input 
{
    width: 100% !important;
    padding: 5px 0;
    font-size: 1.1em;
    margin: 10px 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid #01dbc2;
    color: #fff;
    /* 移除元素轮廓 */
    outline: none;
    /* 禁用尺寸控制手柄 */
    resize: none;
}

.container .contactForm form .inputBox span {
    position: absolute;
    left: 0;
    /* 无法进行指针交互 */
    pointer-events: none;
    padding: 5px 0;
    margin: 10px 0;
    font-size: 1.1em;
    color: #fff;
    transition: 0.5s;
}

/* <input> 元素获得焦点之后的 <span> 元素。 */
.container .contactForm form .inputBox textarea:focus ~ span,
.container .contactForm form .inputBox input:focus ~ span {
    color: #01dbc2;
    font-size: 0.9em;
    transform: translateY(-24px);
}

/* 属性选择器 */
.container .contactForm form .inputBox input[type='submit'] {
    width: 100%;
    background: #01dbc2;
    color: #222;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.2em;
    font-weight: 600;
}


@media (max-width: 991px) {
    .container {
        flex-direction: column;
    }
    .container .contactInfo,
    .container .contactForm {
        width: 100%;
    }

    .container .contactForm form{
        padding: 10px;
    }
}


